import install from './install'
import createMatcher from './create-matcher'

class VueRouter {
    constructor(options={}){
        // 根据用户传递的routes创建匹配关系,this.matcher需要提供两个方法 
        // match：match方法用来匹配规则
        // addRoutes：用来动态添加路由
        this.matcher = createMatcher(options.routes ||[])
    }
    init(componentsInstance){
        // console.log(componentsInstance)
    }
}
VueRouter.install = install


export default VueRouter; 